package com.gulimall.product.vo.categoryvo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author by董江
 * @Tool Intellij IDEA
 * @Classname Category2Vo
 * @Date 2022/5/12 0:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Category2Vo {
    /**
     * 1级分类id
     */
    private Long catalog1Id;
    private Long id;
    private String name;
    /**
     * 三级子分类
     */
    private List<category3Vo> catalog3List;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class category3Vo{
        private Long catalog2Id;
        private Long id;
        private String name;
    }
}
